import createPersistedState from 'vuex-persistedstate';

const userInfo = {
    state: () => ({
        userInfo: ''
    }),
    mutations: {
        setUserInfo(state, newVal) {
            state.userInfo = newVal
        },
        removeUserInfo(state) {
            state.userInfo = ''
        }
    },
    plugins: [createPersistedState()], 
}
export default userInfo  